<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>Document</title>
    <script src="./js/jq.js"></script>
    <script src="./libs/layer/layer.js"></script>
    <script src="./js/common.js"></script>
    <script src="https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/js/s_super_index-855fcfd82e.js"></script>
</head>
<body>
账号:<input name="account" id="account"><br>
密码:<input name="password" id="password"><br>
<button type="button" onclick="login()">登录</button>
<script>
    function login() {
        Ajax.post('login', {account:$("#account").val(),password:$("#password").val()}, function (result) {
            doResult(result, function () {
                window.sessionStorage.setItem("name", result.data.name);
                alert(result.msg)
                document.location.href = 'main.html'
            })
        })
    }
</script>
</body>
</html>
